// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

//Vue全家桶指的是 创建SPA(单页应用)的技术栈
//Vue.js
//页面跳转路由Vue-router
//兄弟组件之间的状态管理Vuex
//官方推荐工具 请求数据 axios
//	优化图片懒加载 vue-lazyload



import Vue from 'vue'
import App from './App'
import router from './router'
import FastClick from 'fastclick'
import $ from 'jquery'
import axios from 'axios'
import VueLazyload from 'vue-lazyload'
import store from './store'

Vue.use(VueLazyload)

//console.log(process.env.NODE_ENV)
const baseURL = 'https://www.easy-mock.com/mock/5acd695e1a719c137134154d/bili';
axios.interceptors.request.use(function (config) {
    // Do something before request is sent
    config.baseURL = baseURL
    return config;
  });

FastClick.attach(document.body);
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
